package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.order.OrderInfo;
import com.example.vo.order.OrderCountQueryVo;
import com.example.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {

    /**
     * 生成挂号订单
     * @param scheduleId 排班id
     * @param patientId 就诊人id
     * @return
     */
    Long saveOrder(String scheduleId, Long patientId);

    /**
     * 根据订单id查询订单详情信息
     * @param orderId
     * @return
     */
    OrderInfo getOrder(String orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 取消预约
     * @param orderId
     * @return
     */
    boolean cancelOrder(Long orderId);

    /**
     * 就诊通知
     */
    void patientTips();

    /**
     * 预约统计
     */
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
